package com.ihr360.payroll.model.vo;

import com.ihr360.commons.model.type.FieldSource;
import com.ihr360.excel.entity.ExcelHeaderCellEntity;

import java.io.Serializable;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-04-13 10:00:30.
 */

public class SalaryFieldEntity extends ExcelHeaderCellEntity implements Serializable {
    private static final long serialVersionUID = -4179030711330467455L;

    private boolean taxMergeField = false;

    public SalaryFieldEntity() {
    }

    public SalaryFieldEntity(String fieldName, String columnName, boolean readOnly) {
        super(fieldName, columnName);
        setReadOnly(readOnly);
    }

    public SalaryFieldEntity(String fieldName, String columnName, boolean taxMergeField, boolean readOnly) {
        super(fieldName, columnName);
        setReadOnly(readOnly);
        this.taxMergeField = taxMergeField;
    }

    private FieldSource source;

    private String formula;

    public FieldSource getSource() {
        return source;
    }

    public void setSource(FieldSource source) {
        this.source = source;
    }

    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    public boolean isTaxMergeField() {
        return taxMergeField;
    }

    public void setTaxMergeField(boolean taxMergeField) {
        this.taxMergeField = taxMergeField;
    }
}
